/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package programaobf;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 *
 * @author Student
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException, IOException {
	String nami="F:\\access.log";
        String namo="F:\\access.txt";
        String namu="F:\\report1.txt";
        String namf="F:\\reportpdf1.pdf";
        String namc="F:\\reportcsv1.csv";
        String namx="F:\\reportxml1.xml";
        File apcolo = new File(nami);
        File coloap = new File(namo);
        File topre1 = new File(namu);
        File pdfrep1 = new File(namf);
        File csvrep1 = new File(namc);
        File xmlrep1 = new File(namx);
        LogReadr a = new LogReadr(apcolo,coloap);
        toprep1 b = new toprep1(apcolo,topre1);
        PDFwritera c = new PDFwritera(topre1, pdfrep1);
        CSVwritera d = new CSVwritera(topre1, csvrep1);
        XMLwritera e = new XMLwritera(topre1, xmlrep1);
	 /*
	String inputFileName = "";
	//String outputFileName = "";
	File inputFile;
	//File outputFile;

	try
	{
	    inputFileName = args[0];
//	    if(args.length > 1)
//	    {
//		outputFileName = args[1];
//	    }
	    inputFile = new File(inputFileName);
	    
	    TopCategoriesReport tcr = new TopCategoriesReport(inputFile);
	}
	catch (Exception e)
	{
	    System.out.println("You need to specify a file to read from!\nUsage:\njava -jar ProgramaOBF.jar <input file> [report type] [format]");
	    System.out.println(e.getMessage());
	    System.exit(0);
	}
	  * 
	  */

    }

}
